<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加产品</title>
 <jsp:include page="../restab.jsp" flush="true" />
</head>
<body>

 <jsp:include page="../header.jsp" flush="true" />
<div id="body">
<form:form method="post" action="addproduct" commandName="product" modelAttribute="product">
    <table>
       <tr>
            <td>类目:</td>
            <td><form:select path="categoryId" items="${cats}" itemValue="categoryId" itemLabel="categoryName"/></td>
        </tr>
     
        <tr>
            <td>产品名称:</td>
            <td><form:input path="productName" /></td>
        </tr>
       <tr>
            <td>现价:</td>
            <td><form:input path="incomePrice" /></td>
        </tr>
       <tr>
            <td>数量:</td>
            <td><form:input path="quantity" /></td>
        </tr>
        <tr>
            <td>售价:</td>
            <td><form:input path="salesPrice" /></td>
        </tr>
        
       <tr>
            <td>
                <input type="submit" value="保存" />
            </td>
        </tr>
    </table>
</form:form>
</div>

<div id="footer">
</div>
</body>
</html>